<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="tagsKeep">
      <component :is="Component"/>
    </keep-alive>
  </router-view>
</template>
<script>
import useRouterStore from "@/stores/useRouterStore";
import {mapState} from "pinia";

export default {
  computed: {
    ...mapState(useRouterStore, ["tagsKeep"])
  },
  created() {
  }
}
</script>
